<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/' }" v-for="(v,i) in bredList " :key="i">
        <router-link :to="v.path">
          {{ v.meta.title }}
        </router-link>

      </el-breadcrumb-item>
    </el-breadcrumb>
  </div>

</template>

<script>
export default {
  data() {
    return {
      bredList: []
    }
  },
  created() {
    this.bredList = this.$route.matched
  },
  watch: {
    $route(to, from) {
      this.bredList = to.matched;
    }
  }

}
</script>

<style>

</style>
